{% extends 'base.html' %}

{% block title %}提交订阅{% endblock %}

{% block content %}
<div class="mt-5 pt-5" style="height: calc(100vh - 114px);">
    <div class="row h-100 justify-content-center align-items-center">
        <div class="col-lg-4 col-sm-8 animated fadeIn">
        <div class="card mb-3 wow fadeIn">
              <div class="card-header font-weight-bold">提交订阅</div>
              <div class="card-body">

                <form method="post">
                  {{ form.csrf_token }}

                  <label>网址</label>
                  {{ form.website(class="form-control") }}
                  <br>
                  {% if not current_user.is_authenticated %}
                  <label>通知邮箱(选填)</label>
                  {{ form.email(class="form-control") }}
                  <br>
                  {% endif %}
                  <div class="form-group">
                    <label for="replyFormComment">简单描述</label>
                    {{ form.describe(class="form-control") }}
                  </div>

                  <div class="text-center mt-4">
                    {{ form.submit(class="btn btn-info btn-md") }}
                  </div>
                </form>
              </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}